package com.show.pm.admin;


import com.show.pm.entity.information.TbAdmin;
import com.show.pm.service.information.admin.ITbAdminService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author mfw
 * @since 2020-11-26
 */
@RestController
@RequestMapping("/admin/tb-admin")
public class TbAdminController {

    @Resource
    private ITbAdminService iTbAdminService;

    @GetMapping("/adminList")
    public List<TbAdmin> adminList(){
        return iTbAdminService.adminList();
    }

}
